package com.jinhongone.pattern.creater.singleton.demo1;

import java.util.Objects;

public class Test {
    public static void main(String[] args) {
        Singleton i1 = Singleton.getInstance();
        Singleton i2 = Singleton.getInstance();
        System.out.println(Objects.equals(i1, i2)); //true 同一个实例
    }
}
